package pta;/**
 * @author： li
 * @date： 2022-03-30 09:26
 * @version 1.0
 */
import  java.util.*;
public class 大笨钟 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] times = sc.nextLine().split(":");
        int[] time = new int[2];
        time[0]= Integer.parseInt(times[0]);
        time[1]= Integer.parseInt(times[1]);
        if(time[0]>=0&&time[0]<12){
            System.out.println("Only "+times[0]+":"+times[1]+".  Too early to Dang.\n");
        }else {
            if(time[0]==12&&time[1]==0)
                System.out.println("Only "+times[0]+":"+times[1]+".  Too early to Dang.\n");
            else {
                if(time[1]>0){
                int count=time[0]-12+1;
                for(int i=1;i<=count;i++)
                    System.out.print("Dang");
                    System.out.println();
                }else {
                    int count=time[0]-12;
                    for(int i=1;i<=count;i++)
                        System.out.print("Dang");
                    System.out.println();
                }
            }
        }
    }
}
